package com.hnjz.sys.role;

import org.springframework.security.core.GrantedAuthority;

import com.hnjz.common.BaseObj;

/**
 * 角色PO
 * 
 * @author lijingfen
 * @version $Id: Role.java,
 */
public class Role extends BaseObj implements GrantedAuthority 
{
    private static final long serialVersionUID = -5750493147242764049L;

    private String            id;
    
    private String            code;

    private String            jsname;                                    // 角色名称

    private String            description;                             // 描述信息

    private String            issys;                                   // 是否系统角色
    
    private int               version;
    
    private String            creator;  

    /**
     * @see org.acegisecurity.GrantedAuthority#getAuthority()
     */
    public String getAuthority() {
        return "ROLE_" + getJsname();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

  

    public String getJsname() {
		return jsname;
	}

	public void setJsname(String jsname) {
		this.jsname = jsname;
	}

	public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

   
	public String getIssys() {
		return issys;
	}

	public void setIssys(String issys) {
		this.issys = issys;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}
    
}
